
import baseRequest from '../utils/requset'

/**
 * 我的服务
 */
// 服务详情 /
export function queryServiceProductByIdApi (data) {
    return baseRequest.baseRequest('api/product/queryServiceProductById', 'get', data)
}
// 我的服务 /
export function queryServiceListApi (data) {
    return baseRequest.baseRequest('api/service/serviceList', 'get', data)
}
// 我的服务 //服务订单详情 /api/service/reservationInfo?reservationId=xx   get
export function reservationInfoApi (data) {
    return baseRequest.baseRequest('api/service/reservationInfo', 'get', data)
}

// 选择地址  获取可约时间 /api/service/queryDateList   post
export function queryDateListApi (data) {
    return baseRequest.baseRequest('api/service/queryDateList', 'post', JSON.stringify(data))
}

// 获取可预约时间段/api/service/queryTimeList  post
export function queryTimeListApi (data) {
    return baseRequest.baseRequest('api/service/queryTimeList', 'post', JSON.stringify(data))
}

// 获取对应可约时间内的服务人员 /api/service/queryEmpList  post
export function queryEmpListApi (data) {
    return baseRequest.baseRequest('api/service/queryEmpList', 'post', JSON.stringify(data))
}

// 提交预约信息 /api/service/order  post
export function orderServiceApi (data) {
    return baseRequest.baseRequest('api/service/order', 'post', JSON.stringify(data))
}

// 没有选择服务人员时  自动分配 /api/service/preOrder  post
export function preOrderServiceApi (data) {
    return baseRequest.baseRequest('api/service/preOrder', 'post', JSON.stringify(data))
}

// 取消原因/api/service/cancelReason  get
export function queryCancelReasonApi () {
    return baseRequest.baseRequest('api/service/cancelReason', 'get')
}
// 取消协议/api/service/cancelAgreement  get
export function queryCancelAgreementApi () {
    return baseRequest.baseRequest('api/service/cancelAgreement', 'get')
}

// 预取消预约/api/service/previewCancel get    reservationId=xx  
export function previewCancelServiceApi (data) {
    return baseRequest.baseRequest('api/service/previewCancel', 'get', data)
}

// 预取消预约之后 使用取消预约/api/service/cancel  post
export function cancelServiceApi (data) {
    return baseRequest.baseRequest('api/service/cancel', 'post', JSON.stringify(data))
}



// 服务流程/api/service/reservationProcess?reservationId=xxxx  get
export function reservationProcessApi (data) {
    return baseRequest.baseRequest('api/service/reservationProcess', 'get', data)
}

// 发布服务评价 /api/service/comment post
export function commentServiceApi (data) {
    return baseRequest.baseRequest('api/service/comment', 'post', JSON.stringify(data))
}

// 查看服务评价 /api/service/commentInfo get
export function commentInfoApi (data) {
    return baseRequest.baseRequest('api/service/commentInfo', 'get', data)
}

/**
 * 服务人员相关接口
 */

// 查询服务人员信息 /api/service/queryEmpInfo post
export function queryEmpInfoApi (data) {
    return baseRequest.baseRequest('api/service/queryEmpInfo', 'post', JSON.stringify(data))
}

// 服务人员对应的评价 /api/service/commentPageByEmp get
export function commentPageByEmpApi (data) {
    return baseRequest.baseRequest('api/service/commentPageByEmp', 'get', data)
}


